using UnityEngine;
using System.Collections;

public class Intro : MonoBehaviour {
	
	
	GUIStyle style = new GUIStyle();
	int clock = 0;
	
	float textPosY = Screen.height+50f;
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		if(textPosY > 0 - Screen.height/2){
			textPosY -= 0.5f;
		}
		
	}
	
	
	void OnGUI () {
		
		style.fontSize = 24;
    	style.normal.textColor=Color.white;
    	style.alignment=TextAnchor.MiddleCenter;
		GUI.Label (new Rect (Screen.width/2 - 250, textPosY, 500, 300), 
			"A short time ahead on a galaxy near, near close ...\n \n \n \n \n \n \n \n"+ 
			"An alien mother ship appears from the dark side of the moon. \n"+
			"Out of nowhere it began attacking Earth. \n \n \n"+
			"As a last resort you are sent on spacecraft nuclear-powered Zegna. \n \n \n \n"+
			"Now all hopes of Earth are upon you to destroy the aliens. \n \n \n \n \n \n \n \n \n \n \n" +
			"You are our very last hope ..."
			
			
			
			,style);
		//GUI.Label (new Rect (Screen.width/2 -250, 100, 500, 500), "Testando o texto modificado", style);
	}
}